const {
    createProxyMiddleware
} = require('http-proxy-middleware');

module.exports = function (app) {
    app.use(createProxyMiddleware('/assessInfo', {
        target: 'https://ssltest.wiseltd.net/',/*这里写自己的代理地址*/
        changeOrigin: true,
        ws: true,
        pathRewrite: {
            '^/assessInfo': ''
        },
    }));
    app.use(createProxyMiddleware('/api1', {
        target: 'http://m.kugou.com?json=true:1000',/*这里写自己的代理地址*/
        changeOrigin: true,
        ws: true,
        pathRewrite: {
            '^/api1': ''
        },
    }));
};
